#include <iostream>

using namespace std;
class Solution {
   public:
    string replaceSpace(string s) {
        string res;
        for (char c : s) {
            if (c == ' ') {
                res += "%20";
            } else {
                res += c;
            }
        }
        // cout << res;
        return res;
    }
};

int main() {
    Solution s;
    s.replaceSpace("sabsd sdklfjl");
    return 0;
}
